<!DOCTYPE html>
<html>
<head th:include="common/header_css::header('霸王餐小程序后台管理-商家账务表','%mfile%datepicker')"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div th:replace="common/toolbar::toolbar('商家账务表管理')"></div>
        <div th:replace="common/search::search('no')"></div>
        <!-- End Panel Basic -->
    </div>
</div>

<!--添加Saccount模态框-->
<div id="modal-add-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">商家账务表添加</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form method="post" class="form-horizontal" action="add">
                                                                                                                                                                                                                                                                                <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >可用金额#可用金额=可提现金额=累计充值余额+累计销售额-押金-待入账销售额-消耗金额-累计提现额-营销金额&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="amount">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >累计销售额#累计销售额=累计(销售额=单价*数量)&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="saleAmount">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >营销金额#营销金额=营销成本=积分抵扣+会员卡抵扣+优惠券抵扣+红包抵扣+快递费用&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="mamount">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >商家总优惠金额</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="youhui">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >累计佣金</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="fanli">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >待入账佣金&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="fanliing">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >总金额#总金额=不可用金额+可用金额=累计充值余额+累计销售额</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="total">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >冻结资金=押金&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="freeze">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >累计充值余额&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="chargeAmount">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >累计提现额&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="withdraw">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >不可用金额#不可用金额=待入账销售额+冻结资金&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="unuseAmount">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >消耗金额#消耗金额=广告费用=推广费用&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="consume">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >总退款额</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="refund">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >积分</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="jifen">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                            <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="col-sm-4 control-label">是否独立支付</label>
                                                        <div class="col-sm-8">
                                                            <input type="checkbox" class="js-switch" name="isIndependentPay">
                                                        </div>
                                                    </div>
                                                </div>
                                                                                                                                                                                                                                                            <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="col-sm-4 control-label">启用状态&</label>
                                                        <div class="col-sm-8">
                                                            <input type="checkbox" class="js-switch" name="state">
                                                        </div>
                                                    </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >手机号&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="phone">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >累计短信充值费用</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="smsmoutTotal">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >短信余额</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="smsmout">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >剩余短信条数</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="smstotal">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >短信价格</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="smsprice">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-add-form" >取消</button>
                                        </div>
                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--修改Saccount模态框-->
<div id="modal-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">商家账务表修改</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form method="post" class="form-horizontal" action="modify">
                                                                                                                                                                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >可用金额#可用金额=可提现金额=累计充值余额+累计销售额-押金-待入账销售额-消耗金额-累计提现额-营销金额&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="amount" name="amount">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >累计销售额#累计销售额=累计(销售额=单价*数量)&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="saleAmount" name="saleAmount">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >营销金额#营销金额=营销成本=积分抵扣+会员卡抵扣+优惠券抵扣+红包抵扣+快递费用&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="mamount" name="mamount">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >商家总优惠金额</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="youhui" name="youhui">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >累计佣金</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="fanli" name="fanli">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >待入账佣金&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="fanliing" name="fanliing">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >总金额#总金额=不可用金额+可用金额=累计充值余额+累计销售额</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="total" name="total">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >冻结资金=押金&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="freeze" name="freeze">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >累计充值余额&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="chargeAmount" name="chargeAmount">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >累计提现额&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="withdraw" name="withdraw">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >不可用金额#不可用金额=待入账销售额+冻结资金&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="unuseAmount" name="unuseAmount">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >消耗金额#消耗金额=广告费用=推广费用&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="consume" name="consume">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >总退款额</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="refund" name="refund">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >积分</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="jifen" name="jifen">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">是否独立支付</label>
                                                    <div class="col-sm-8">
                                                        <input type="checkbox" id="isIndependentPay" name="isIndependentPay">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">启用状态&</label>
                                                    <div class="col-sm-8">
                                                        <input type="checkbox" id="state" name="state">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >手机号&</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="phone" name="phone">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >累计短信充值费用</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="smsmoutTotal" name="smsmoutTotal">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >短信余额</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="smsmout" name="smsmout">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >剩余短信条数</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="smstotal" name="smstotal">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >短信价格</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="smsprice" name="smsprice">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-form" >取消</button>
                                        </div>
                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <input id="id" name="id" type="hidden" value="" />
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div th:include="common/footer_js::footer"></div>
<script src="/js/admin/saccount.js"></script>
</body>
</html>
